The Dreamweaver JavaScript API > Path functions > dreamweaver.getSiteRoot()

 

dreamweaver.getSiteRoot()

Availability

Dreamweaver 1.2

Description

Gets the local root folder (as specified in the Site Definition dialog box) for the site associated with the currently selected document, expressed as a file:// URL.

Arguments

None.

Returns

One of the following values:

A string containing the URL of the local root folder of the site within which the file was saved.
An empty string if the file is not associated with a site.

Enabler

None.